-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Cli/API/UI tests for bootc #17634
base: master
Are you sure you want to change the base?
Conversation
trigger: test-robottelo |
|
PRT Result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please confirm :CaseComponent:
before merging. Rest of things looks good.
@pytest.fixture | ||
def bootc_host(request): | ||
"""Fixture to check out boot-c hosts""" | ||
with Broker( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't we need ipv6 host?
@@ -1068,6 +1069,51 @@ def test_positive_read_enc_information( | |||
assert host_enc_parameters[param['name']] == param['value'] | |||
|
|||
|
|||
@pytest.mark.e2e | |||
def test_positive_bootc_api_actions(target_sat, bootc_host, function_ak_with_cv, function_org): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the jira-id of the feature.
|
PRT Result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A hosts count question - one or more?
pytest_fixtures/core/contenthosts.py
Outdated
host_class=ContentHost, | ||
) as host: | ||
assert ( | ||
host[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
host[0] | |
host |
PRT fails with
20:09:15 > host[0]
20:09:15 .execute(f"echo '{constants.DUMMY_BOOTC_FACTS}' > /etc/rhsm/facts/bootc.facts")
20:09:15 .status
20:09:15 == 0
20:09:15 )
20:09:15 E TypeError: 'ContentHost' object is not subscriptable
Did you plan to get multiple hosts (like with _count
parameter) from this broker run?
The docstring says so but the fixture name and code don't.
tests/foreman/api/test_host.py
Outdated
bootc_host[0].register(function_org, None, function_ak_with_cv.name, target_sat).status == 0 | ||
) | ||
assert bootc_host[0].subscribed | ||
# Testing bootc info from content_facet_attributes | ||
bootc_host = target_sat.api.Host().search(query={'search': f'name={bootc_host[0].hostname}'})[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar question here (bootc_host[0]
) and lower in the other tests.
|
PRT Result
|
Problem Statement
Adds tests for CLI/UI/API for bootc, using dummy facts
Related Issues
Relies on: SatelliteQE/airgun#1745 and SatelliteQE/nailgun#1277